package com.itheima.chapter10.volatile2;

public class Mythread1 extends Thread{
    @Override
    public void run() {
        while(Money.money==100000){
            synchronized (Money.lock) {
                if (Money.money!=100000){
                    System.out.println("结婚基金不是十万");
                    break;
                }
            }
        }

    }
}
